package com.nstar.jianli.vo
{
	public class SkillVO
	{
		public var id:String;
		public var skillType:String;
		public var skillName:String;
		public var usedTime:int;
		public var level:int;
		public var strokeColor:uint = 0x00C4F9;
		public var backgroundColor:uint = 0x00C4F9;
		
		public static const MAX_LEVEL :int = 4;
		public static const LEVEL_NORMAL:String = "normal";
		public static const LEVEL_FINE:String = "fine";
		public static const LEVEL_SKILLED:String = "skilled";
		public static const LEVEL_PROFICENT:String = "proficient";
		
		public function SkillVO()
		{
		}
		
		public function get levelName():String{
			switch(level){
				case 0:
					return "一般";
				case 1:
					return "良好";
				case 2:
					return "熟练";
				case 3:
					return "精通";
				default:
					return "";
			}
		}
		
		public function toString():String{
			return "id="+id+",skillName="+skillName+",usedTime="+usedTime;
		}

	}
}